home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Win2K My Computer Manage 1.xpl < prev    next >
Text File  |  2004-02-07  |  2KB  |  58 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\Desktop\Icons\'My Computer' Context Menu"
  5. "NAME"="Show "Manage" link"
  6. "VERSION"="1.03"
  7. "LANGUAGE"="VBScript"
  8. "OSVERSION"="0001011"
  9. "TEXT 1"="Show "Manage" command in context menu"
  10. "DESCRIPTION 1"="If this option is activated, you can right-click on "My Computer" and select "Manage" from the appearing menu."
  11. "DESCRIPTION 2"="If deactivated, this command does no longer appear but you can still launch "compmgmt.msc" to manage your computer."
  12. "AUTHOR"="Xteq Systems"
  13. "CONTACTURL"="http://www.xteq.com/"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="found at Win2000mag.com - David Chernicoff, david@win2000mag.com"
  16.  
  17.  
  18. sV1="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoManageMyComputer"
  19. 'sV2="HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoFileAssociate"
  20.  
  21. Sub Plugin_Initialize 
  22.  i=RegReadValue(sV1)
  23.  If IsEmpty(i) or i=0 then SetUIElement 1,true
  24.  
  25. ' i=RegReadValue(sV2)
  26. ' If IsEmpty(i) or i=0 then SetUIElement 2,true
  27. End Sub
  28.  
  29. Sub Plugin_CheckData(ElementIndex)
  30. End Sub
  31.  
  32. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  b=GetUIElement(1)
  34.  if b=true then
  35.     if RegValueExists(sV1) then
  36.        Call RegDeleteValue(sv1)
  37.     end if
  38.  else
  39.     Call RegWriteValue(sV1,1,2)
  40.  end if
  41.  
  42. ' b=GetUIElement(2)
  43. ' if b=true then
  44. '    if RegValueExists(sV2) then
  45. '       Call RegDeleteValue(sv2)
  46. '    end if
  47. ' else
  48. '    Call RegWriteValue(sV2,1,2)
  49. ' end if
  50.  
  51.  
  52. ' Call IndicateSettingChange()
  53.  Call Logoff()
  54. End Sub
  55.  
  56. Sub Plugin_Terminate 
  57. End Sub
  58.